package com.cskaoyan.bean.admin;

import com.cskaoyan.bean.BaseParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class Admin extends BaseParam {
    private Integer id;

    @Length(min = 6, max = 20)
    private String username;

    @Length(min = 6, max = 20)
    private String password;

    private String lastLoginIp;

    private Date lastLoginTime;

    private String avatar;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

    private Integer[] roleIds;
}